package org.wyn.mongodb.bean;

import org.bson.types.ObjectId;
import org.wyn.common.Table;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Id;
import com.google.code.morphia.annotations.Indexed;

/**
 * 邀请成为好友的请求
 * @author wyn
 *
 */
@Entity(value=Table.CollectionName.BECOMEFRIENDREQUEST,noClassnameStored = true)
public class BecomeFriendRequest {
	@Id
	private ObjectId requestId;
	/**发起方userName*/
	@Indexed
	private String fromUser;
	/**接收方userName*/
	@Indexed
	private String toUser;
	private long createTime;
	public ObjectId getRequestId() {
		return requestId;
	}
	public void setRequestId(ObjectId requestId) {
		this.requestId = requestId;
	}
	public String getFromUser() {
		return fromUser;
	}
	public void setFromUser(String fromUser) {
		this.fromUser = fromUser;
	}
	public String getToUser() {
		return toUser;
	}
	public void setToUser(String toUser) {
		this.toUser = toUser;
	}
	public long getCreateTime() {
		return createTime;
	}
	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}
	
}
